/**
 * 
 */
package com.efast.dmom.mes.entity;

import java.time.LocalDateTime;

import com.efast.dmom.mes.entity.base.RuntimeBaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;

/**
 * @author Aaron Liu
 *
 *         2020年3月30日
 */
public class WorkOrderEntity extends RuntimeBaseEntity {

	private static final long serialVersionUID = 24323341832602503L;

	private long id = 0;
	private String orderNumber = null;
	private short orderStatus = -1;
	private long plantId = 0;
	private short closeType = -1;
	private String sequence = null;
	private String ea0;
	private String ea1;
	private String ea2;
	private String ea3;
	private String ea4;

	@JsonDeserialize(using = LocalDateTimeDeserializer.class)
	@JsonSerialize(using = LocalDateTimeSerializer.class)
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime closeTime = null;

	@JsonDeserialize(using = LocalDateTimeDeserializer.class)
	@JsonSerialize(using = LocalDateTimeSerializer.class)
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime finishTime = null;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getOrderNumber() {
		return orderNumber;
	}

	public void setOrderNumber(String orderNumber) {
		this.orderNumber = orderNumber;
	}

	public short getOrderStatus() {
		return orderStatus;
	}

	public void setOrderStatus(short orderStatus) {
		this.orderStatus = orderStatus;
	}

	public long getPlantId() {
		return plantId;
	}

	public void setPlantId(long plantId) {
		this.plantId = plantId;
	}

	public short getCloseType() {
		return closeType;
	}

	public void setCloseType(short closeType) {
		this.closeType = closeType;
	}

	public LocalDateTime getCloseTime() {
		return closeTime;
	}

	public void setCloseTime(LocalDateTime closeTime) {
		this.closeTime = closeTime;
	}

	public LocalDateTime getFinishTime() {
		return finishTime;
	}

	public void setFinishTime(LocalDateTime finishTime) {
		this.finishTime = finishTime;
	}

	public String getSequence() {
		return sequence;
	}

	public void setSequence(String sequence) {
		this.sequence = sequence;
	}

	public String getEa0() {
		return ea0;
	}

	public void setEa0(String ea0) {
		this.ea0 = ea0;
	}

	public String getEa1() {
		return ea1;
	}

	public void setEa1(String ea1) {
		this.ea1 = ea1;
	}

	public String getEa2() {
		return ea2;
	}

	public void setEa2(String ea2) {
		this.ea2 = ea2;
	}

	public String getEa3() {
		return ea3;
	}

	public void setEa3(String ea3) {
		this.ea3 = ea3;
	}

	public String getEa4() {
		return ea4;
	}

	public void setEa4(String ea4) {
		this.ea4 = ea4;
	}

}
